package com.apache.flow.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "FLOW_SYS")
public class FlowSys implements java.io.Serializable {
	public FlowSys() {
	}

	public FlowSys(String sysId, String sysEname, String sysCname, String sysUrl, String createUser, String sysStatus,
			String createTime) {
		this.sysId = sysId;
		this.sysEname = sysEname;
		this.sysCname = sysCname;
		this.sysUrl = sysUrl;
		this.createUser = createUser;
		this.createTime = createTime;
		this.sysStatus = sysStatus;
	}

	private String sysId;
	private String sysEname;
	private String sysCname;
	private String sysUrl;
	private String createUser;
	private String sysStatus; //1是正常   0是已删除
	private String createTime;

	@Id
	@Column(name = "SYS_ID", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid.hex")
	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	@Column(name = "SYS_ENAME", length = 100)
	public String getSysEname() {
		return sysEname;
	}

	public void setSysEname(String sysEname) {
		this.sysEname = sysEname;
	}

	@Column(name = "SYS_CNAME", length = 100)
	public String getSysCname() {
		return sysCname;
	}

	public void setSysCname(String sysCname) {
		this.sysCname = sysCname;
	}

	@Column(name = "SYS_URL", length = 100)
	public String getSysUrl() {
		return sysUrl;
	}

	public void setSysUrl(String sysUrl) {
		this.sysUrl = sysUrl;
	}

	@Column(name = "create_user", length = 50)
	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	@Column(name = "CREATE_TIME", length = 30)
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "sys_status", length = 1)
	public String getSysStatus() {
		return sysStatus;
	}

	public void setSysStatus(String sysStatus) {
		this.sysStatus = sysStatus;
	}

}
